package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务器连接信息对象 sys_asset_gx
 * 
 * @author 陈玉强
 * @date 2025-06-01
 */
public class SysAssetGx extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 访问域名 */
    @Excel(name = "访问域名")
    private String accessDomain;

    /** 访问IP */
    @Excel(name = "访问IP")
    private String accessIp;

    /** 本地端口 */
    @Excel(name = "本地端口")
    private Long localPort;

    /** 公网端口 */
    @Excel(name = "公网端口")
    private Long publicMappedPort;

    /** 服务器IP */
    @Excel(name = "服务器IP")
    private String serverIp;

    /**  */
    @Excel(name = "")
    private Long assetId;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Integer isActive;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccessDomain(String accessDomain) 
    {
        this.accessDomain = accessDomain;
    }

    public String getAccessDomain() 
    {
        return accessDomain;
    }
    public void setAccessIp(String accessIp) 
    {
        this.accessIp = accessIp;
    }

    public String getAccessIp() 
    {
        return accessIp;
    }
    public void setLocalPort(Long localPort) 
    {
        this.localPort = localPort;
    }

    public Long getLocalPort() 
    {
        return localPort;
    }
    public void setPublicMappedPort(Long publicMappedPort) 
    {
        this.publicMappedPort = publicMappedPort;
    }

    public Long getPublicMappedPort() 
    {
        return publicMappedPort;
    }
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accessDomain", getAccessDomain())
            .append("accessIp", getAccessIp())
            .append("localPort", getLocalPort())
            .append("publicMappedPort", getPublicMappedPort())
            .append("serverIp", getServerIp())
            .append("assetId", getAssetId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isActive", getIsActive())
            .toString();
    }
}
